package com.benben.springSecurity.responsibilityChain;

public class DogHandler extends Handler {

    @Override
    public String optionMessage(String flag) {
        System.out.println("dog 执行完毕");
        if(getNextHandler() != null){
            getNextHandler().optionMessage(flag);
        }else{
            System.out.println("执行链执行完毕");
        }
        return "";
    }
}
